Optimal. Leaf size=23 \[ \frac{x}{a}+\frac{i \log (\cos (c+d x))}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0701351, antiderivative size = 23, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.103, Rules used = {3092, 3090, 3475} \[ \frac{x}{a}+\frac{i \log (\cos (c+d x))}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3092
Rule 3090
Rule 3475
Rubi steps
\begin{align*} \int \frac{\sec (c+d x)}{a \cos (c+d x)+i a \sin (c+d x)} \, dx &=-\frac{i \int \sec (c+d x) (i a \cos (c+d x)+a \sin (c+d x)) \, dx}{a^2}\\ &=-\frac{i \int (i a+a \tan (c+d x)) \, dx}{a^2}\\ &=\frac{x}{a}-\frac{i \int \tan (c+d x) \, dx}{a}\\ &=\frac{x}{a}+\frac{i \log (\cos (c+d x))}{a d}\\ \end{align*}
Mathematica [A] time = 0.0651584, size = 23, normalized size = 1. \[ \frac{i \log (\cos (c+d x))+c+d x}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.121, size = 22, normalized size = 1. \begin{align*}{\frac{-i\ln \left ( i\tan \left ( dx+c \right ) +1 \right ) }{ad}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.1681, size = 136, normalized size = 5.91 \begin{align*} -\frac{-\frac{i \, \log \left (\frac{\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}{a} - \frac{i \, \log \left (\frac{\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 1\right )}{a} + \frac{i \, \log \left (-\frac{2 i \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac{\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 1\right )}{a}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.492848, size = 65, normalized size = 2.83 \begin{align*} \frac{2 \, d x + i \, \log \left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )}{a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.14518, size = 80, normalized size = 3.48 \begin{align*} -\frac{\frac{2 i \, \log \left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - i\right )}{a} - \frac{i \, \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1 \right |}\right )}{a} - \frac{i \, \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1 \right |}\right )}{a}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]